package com.learn.annotation;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.context.ApplicationContext;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import javax.annotation.Resource;

/**
 * @author chenxin
 * @time 2016-12-29-17:33
 */
@ContextConfiguration(locations = {
        "classpath:applicationContext-annotation.xml",
})
@RunWith(SpringJUnit4ClassRunner.class)
public class AnnotationMain {
//    public static void main(String[] args) {
//        AnnotationTest bar = new AnnotationTest();
//        bar.testMethod();

    //    }
    @Resource private ApplicationContext atx;
    @Resource private AnnotationTest annotationTest;
    @Test
    public void test(){
        annotationTest.testMethod();

    }
}
